package cn.two.dabeiphotov2.mapper;

import cn.two.dabeiphotov2.pojo.entity.Product;
import cn.two.dabeiphotov2.pojo.vo.ProductAdminVo;
import cn.two.dabeiphotov2.pojo.vo.ProductUpdateVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {
    void insert(Product product);

    List<ProductAdminVo> selectForAdmin();

    String selectUrlById(int id);

    void deleteById(int id);

    void update(Product product);

    ProductUpdateVo selectById(int id);
}
